<?php
	$items = explode("/", $this->here);
	unset($items[0]);	// this is empty, because the url is in the form /controller/action/...
?>
<?php if(count($items) > 1): ?>
<ol class="breadcrumb">
<?php foreach($items as $item): ?>
	<?php if($item === 'admin'): ?>
	<li><a href="<?php echo $this->Html->url( array('controller' => 'AdminDashboard', 'action' => 'dashboard') ); ?>"><?php echo __d('admin', 'Dashboard'); ?></a></li>
	<?php else: ?>
	<?php if( $item !== $this->action ): ?>
	<li><a href="<?php echo $this->Html->url( array('controller' => 'Admin'.ucfirst($item), 'action' => 'index') ); ?>"><?php echo ucfirst($item); ?></a></li>
	<?php else: ?>
	<li class="active"><?php echo ucfirst($item); ?></li>
	<?php endif; ?>
	<?php endif; ?>
<?php endforeach; ?>
</ol>
<?php endif; ?>


<?php //pr($this->request); ?>